From d744436a50686fc63686c4dc3507cd19e47c5a99 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 6 Feb 2014 03:46:14 -0500 Subject: [PATCH] pull: Don't crash if the URL is not found --- src/libostree/ostree-repo-pull.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index b98d132e..ec90520c 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -378,7 +378,7 @@ fetch_uri_contents_membuf_sync (OtPullData *pull_data, run_mainloop_monitor_fetcher (pull_data); if (!fetch_data.result_stream) { - if (g_error_matches (*error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) + if (allow_noent && g_error_matches (*error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) { g_clear_error (error); ret = TRUE; -- 2.30.2